package com.cg.p2_demo;

import java.util.Scanner;

public class Demo_SC {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入第一个和尚的身高:");
        int a = sc.nextInt();
        System.out.println("请输入第二个和尚的身高:");
        int b = sc.nextInt();
        System.out.println("请输入第三个和尚的身高:");
        int c = sc.nextInt();

        int temp = a > b ? a : b;
        int max = temp > c ? temp : c;
        System.out.println("三个和尚中最高的为" + max + "厘米");

    }
}
